package com.itheima.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.bean.Category;
import com.itheima.common.ParamPage;

import java.util.List;

public interface CategoryService {
    Page<Category> findPage(ParamPage page);
    int add(Category category);
    int update(Category category);
    int delete(Long id);
    List<Category> findByType(Integer type);
    Category findByCid(long id);
}
